
/**
 * 基于wx的小程序网络请求封装类
 * @author emhome<emhome@163.com>
 */
export function Logger (data, page) {
  console.group('Logger')
  console.log(data)
  console.log(page)
  console.groupEnd('Logger')
}

class Log {
  constructor (app) {
    this.app = app
    this.groupTitle = app.appOptions.path
  }

  dump (data) {
    console.group(this.groupTitle)
    console.log(data)
    console.groupEnd(this.groupTitle)
  }
}

export default Log
